<?php
/**
 * This is the page footer element that will be rendered any time a page is loaded.
 * @author Gideon Amissah<kuulmek@yahoo.com>
 * @access public
 * @version 1.0
 */
# Instance of Organisation Model
$OrgObj =  ClassRegistry::init('Organisation');
$org = $OrgObj->getOrgInfo();
?>
<!-- Sidebar/drop-down menu -->
<section id="menu" role="complementary">

    <!-- This wrapper is used by several responsive layouts -->
    <div id="menu-content">

        <header>
            <?php echo $group['Group']['name']; ?>
        </header>

        <div id="profile">
            <?php echo $this->Html->image('user.png', array('width'=>'64', 'height'=>'64','alt' =>'User name','class'=>'user-icon')); ?>
            Hello
            <span class="name"><?php echo $authUser['first_name']; ?> <b><?php echo $authUser['last_name']; ?></b></span>
        </div>

        <!-- By default, this section is made for 4 icons, see the doc to learn how to change this, in "basic markup explained" -->
        <!--<ul id="access" class="children-tooltip">-->
        <ul id="access2" class="children-tooltip">
           <!-- <li>
                <a href="#" title="Messages"><span class="icon-inbox"></span><span class="count">0</span></a>
            </li>
            <li><a href="#" title="Calendar"><span class="icon-calendar"></span></a></li>-->
            <li>
                <a href="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'profile')); ?>" title="Profile">
                    <span class="icon-user"></span>
                </a>
            </li>
            <li>
                <a href="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'messages')); ?>" title="Messages">
                    <span class="icon-mail"></span><span class="count"><?php echo $user_inbox; ?></span>
                </a>
            </li>
            <li>
                <a href="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'logout')); ?>" title="Logout">
                    <span class="icon-lock"></span>
                </a>
            </li>
        </ul>

       <!-- <section class="navigable">
            <ul class="big-menu">
                <li class="with-right-arrow">
                    <span><span class="list-count">6</span>Appointment with patients</span>
                    <ul class="big-menu">
                        <li><a href="auto-setup.html">Akua Mary</a></li>
                        <li><a href="responsive.html">Mansa Musa</a></li>
                        <li><a href="tabs.html">Kofi Tobby</a></li>
                        <li><a href="sliders.html">Yaw Drogo</a></li>
                        <li><a href="modals.html">Mensah Sabbah</a></li>
                        <li><a href="modals.html">Rita Ritz</a></li>
                    </ul>
                </li>
            </ul>
        </section>-->

       <!--<ul class="unstyled-list">
            <li class="title-menu">&nbsp;</li>
            <li>
                <ul class="calendar-menu">
                    <li>
                        <p class="button-height">
                            <input type="checkbox" name="always-hide" id="always-hide"  <?php /*echo ($authUser['always_hide'] == 'y')? 'checked="checked"':''; */?>  class="switch medium float-right" data-text-on="Yes" data-text-off="No" />
                            <label for="always-hide">Always Hide</label>
                            <input type="hidden" id="always-hide-url" value="<?php /*echo $this->Html->url(array('controller' => 'Users', 'action' => 'always_hide')); */?>">
                        </p>

                    </li>
                </ul>
            </li>-->
            <!--<li class="title-menu">New messages</li>
            <li>
                <ul class="message-menu">
                    <li>
							<span class="message-status">
								<a href="javascript:void(0);" class="starred" title="Starred">Starred</a>
								<a href="javascript:void(0);" class="new-message" title="Mark as read">New</a>
							</span>
							<span class="message-info">
								<span class="blue">17:12</span>
								<a href="javascript:void(0);" class="attach" title="Download attachment">Attachment</a>
							</span>
                        <a href="javascript:void(0);" title="Read message">
                            <strong class="blue">John Doe</strong><br>
                            <strong>Mail subject</strong>
                        </a>
                    </li>
                </ul>
            </li-->
       </ul>

    </div>
    <!-- End content wrapper -->

    <!-- This is optional -->
    <footer id="menu-footer">
       <p class="">  <?php echo __(' &copy;Copyright',true).' '.date('Y').' '.$org['name'] ;?></p>
        <!-- --><?php /*echo $OrgObj->getName().' '.__(' &copy;Copyright',true).' '.date('Y') ;*/?>
    </footer>

</section>
<!-- End sidebar/drop-down menu -->